<?php
/**
* 生成字符串的 md5 值
* $Id$
*/
?>

<html><head><title>md5生成</title></head><body>
	<?php
		if ($_SERVER['REQUEST_METHOD']=='POST') {
			$char_text = $_POST['char_text'];
			echo md5($char_text);
		}
	?>
	<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
		<input type="text" name="char_text" id="char_text" />&nbsp;&nbsp;
		<input type="submit" value="生成md5值" />
	</form>
</body></html>
